<?php if (!defined('THINK_PATH')) exit();?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <script type="text/javascript" src="/Public/Home/js/rem.js"></script>
    <script type="text/javascript" src="/Public/Home/js/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="/Public/Home/js/layer_mobile/layer.js"></script>
    <link type="text/css" rel="stylesheet" href="/Public/Home/css/doctor.css" />
    <link type="text/css" rel="stylesheet" href="/Public/Home/css/clinic.css" />   
     <link type="text/css" rel="stylesheet" href="/Public/Home/css/person.css" />

    <script src="/Public/Home/js/zepto.min.js"></script>
    <link href="/Public/Home/css/weui.min.css" rel="stylesheet">
	<link rel="stylesheet" href="/Public/Home/SaleManager/stylesheets/index.css">

</head>
<style>
body {
    line-height: 1.4286;
    color: #666;
    font-family: arial;
    font-size: 0.75rem;
}

Inherited from html

.feedBack {
    padding-bottom: 0.625rem;
}
.bg_f {
    background: #fff;
    padding-bottom: 0.9375rem;
}
.P_main {
    padding: 0 0.9375rem;
    overflow: hidden;
}
.feedBack textarea {
    display: block;
    width: 100%;
    height: 4.0625rem;
    background: #f2f2f2;
    padding: 0.625rem;
    box-sizing: border-box;
    resize: none;
    border-radius: 0.09375rem;
}
textarea {
    display: block;
    height: 3.3125rem;
    background: #f2f2f2;
    width: 100%;
    line-height: 0.9375rem;
    resize: none;
    padding: 0.3125rem;
    box-sizing: border-box;
}

input, textarea, select {
    font-size: 100%;
    font-family: inherit;
    outline: none;
    -webkit-appearance: none;
    border: none;
    padding: 0;
    margin: 0;
    }
    .bBth.blue a {
    background: #6db0e4;
}
.bBth a {
    display: block;
    width: 100%;
    height: 2.1875rem;
    line-height: 2.1875rem;
    text-align: center;
    background: #e13838;
    color: #fff;
    border-radius: 0.15625rem;
}
</style>
<header class = "all_header">
			<a class = "h_back h_back_1" data-back='1' href="javascript:void(0)"><img src="/Public/Home/SaleManager/images/back_icon.png" alt=""></a>
			<span class = "h_title">意见反馈</span>
			<a class = "h_add" href="javascript:void(0)"></a>
</header>

    <div class="P_con">
        <div class="P_main feedBack bg_f">
            <p>问题与意见</p>
            <textarea placeholder="请简要描述您的意见和建议" id="content"></textarea>
            <div class="bBth blue"><a href="javascript:void(0)" id="sub">提交</a></div>
        </div>
    </div>

<div class="js_dialog" id="confirm_dialog" style="display: none;">
      <div class="weui-mask"></div>
      <div class="weui-dialog">
        <div class="weui-dialog__bd"></div>
        <div class="weui-dialog__ft">
            <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary">确 定</a>
        </div>
      </div>
    </div>
    <div class="js_dialog" id="iosDialog1" style="display: none;">
    <div class="weui-mask"></div>
    <div class="weui-dialog">
        <div class="weui-dialog__hd"><strong class="weui-dialog__title">提示</strong></div>
        <div class="weui-dialog__bd confir_content"></div>
        <div class="weui-dialog__ft">
            <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_default cancel-btn">取消</a>
            <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary ok-btn">确定</a>
        </div>
    </div>
</div>
 <div class="js_dialog" id="jsconfiroms" style="display: none;">
    <div class="weui-mask"></div>
    <div class="weui-dialog">
        <div class="weui-dialog__hd"><strong class="weui-dialog__title">提示</strong></div>
        <div class="weui-dialog__bd confir_content"></div>
        <div class="weui-dialog__ft">
            
            <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary oksss-btn">确定</a>
            <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_default cancelsss-btn">取消</a>
        </div>
    </div>
</div>


  <script type="text/javascript">
	var saleManagerStatus; //操作返回状态
	$(document).ready(function() { 
		saleManagerStatus='';
		saleManagerStatus ='<?php echo ($status); ?>';  //success,成功；error,错误
		msg ='<?php echo ($msg); ?>';
		if(saleManagerStatus=='success'||saleManagerStatus=='validatefail'){
			$('.weui-dialog__bd').html(msg);
     		$('#confirm_dialog').css('display','block');
     		//saleManagerStatus='formSubmitTrue';
		}
		if(saleManagerStatus=='error'){ 
			$('.weui-dialog__bd').html(msg);
     		$('#confirm_dialog').css('display','block');
     		//saleManagerStatus='formSubmitTrue';
		}
	}); 
	//关闭弹出框
	$(document).on('click','.weui-dialog__btn_primary',function(){
		$('#confirm_dialog').css('display','none');
		if(saleManagerStatus=='error'){
			history.go(-1);
		}
	}); 
	
	$(document).on('click','.cancelsss-btn',function(){
		$('#jsconfiroms').css('display','none');
	});
  </script>
	<script src = "/Public/Home/SaleManager/js/index.js"></script>
	<script src = "/Public/Home/SaleManager/js/androidback.js"></script>
    <script type="text/javascript">
    var returnStatus;
    var returnMsgstatus;
        $(function(){
        	var lock=true;
	       $(document).on('click','#sub',function(){
	    	   if(!lock){
	    		   return false;
	    	   }
	    	   lock=false;
	    	 	$.ajax({
	        	    url: "",
	        	    type: 'POST',
	        	    data: {'content':$("#content").val()},
	        	    async: false,
	        	    cache: false,
	        	   	dataType:"json",
	        	    success: function (returndata) {
	        	    	lock=true;
	        	    	//session失效
	        	   	 	returnStatus=returndata.code;
	        	   	 	returnMsgstatus= returndata.msg;
	        	   	 	if(returndata.code==1){
	        		   	 	$('.weui-dialog__bd').html(returndata.msg);
	        		   	 	$('#confirm_dialog').css('display','block');
	        	   	 		$('.sendCode_btn').html('10分钟后重发');
	        	   	 	}
	        		   	if(returndata.code==0){
	        		   		$('.weui-dialog__bd').html(returndata.msg);
	        		 		$('#confirm_dialog').css('display','block');
	        	   	 	}
	        	    },
	        	    error: function (returndata) {
	        	    		lock=true;
	        	    		$('.weui-dialog__bd').html(returndata.msg);
	        	 		$('#confirm_dialog').css('display','block');
	        	    }
	        	});
	       })
        });
        $(document).on('click','.weui-dialog__btn_primary',function(){
        			history.go(-1);
        });
    </script>
</block>